.class public final Lcn/cheln/explorer/actions/OperationUtil;
.super Ljava/lang/Object;


# static fields
.field public static a:Lcom/direction/hold/ui/CommonActivity;

.field public static b:Ljava/util/List;

.field public static c:Ljava/lang/Integer;

.field public static d:Landroid/app/ProgressDialog;

.field public static e:Ljava/util/Map;

.field public static f:Z

.field private static k:Ljava/lang/String;

.field private static l:Z

.field private static m:I

.field private static n:I


# instance fields
.field public g:Ljava/util/List;

.field public h:Ljava/util/Map;

.field public i:Ljava/lang/Thread;

.field public j:Landroid/content/Context;

.field private o:Ljava/lang/String;

.field private p:I

.field private q:Landroid/os/Message;

.field private r:Ljava/io/File;

.field private s:Ljava/lang/String;

.field private t:Landroid/content/DialogInterface$OnClickListener;

.field private u:Landroid/content/DialogInterface$OnClickListener;

.field private v:Landroid/content/DialogInterface$OnClickListener;


# direct methods
.method static constructor <clinit>()V
    .locals 1

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    const/4 v0, 0x2

    invoke-static {v0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->c:Ljava/lang/Integer;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    const/4 v0, 0x3

    sput v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->g:Ljava/util/List;

    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    new-instance v0, Lcn/cheln/explorer/actions/OperationUtil$PerformOperationClickListener;

    invoke-direct {v0, p0, p0}, Lcn/cheln/explorer/actions/OperationUtil$PerformOperationClickListener;-><init>(Lcn/cheln/explorer/actions/OperationUtil;Lcn/cheln/explorer/actions/OperationUtil;)V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->t:Landroid/content/DialogInterface$OnClickListener;

    new-instance v0, Lcn/cheln/explorer/actions/OperationUtil$CancelOperationClickListener;

    invoke-direct {v0, p0, p0}, Lcn/cheln/explorer/actions/OperationUtil$CancelOperationClickListener;-><init>(Lcn/cheln/explorer/actions/OperationUtil;Lcn/cheln/explorer/actions/OperationUtil;)V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->u:Landroid/content/DialogInterface$OnClickListener;

    new-instance v0, Lcn/cheln/explorer/actions/OperationUtil$1;

    invoke-direct {v0, p0}, Lcn/cheln/explorer/actions/OperationUtil$1;-><init>(Lcn/cheln/explorer/actions/OperationUtil;)V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->v:Landroid/content/DialogInterface$OnClickListener;

    return-void
.end method

.method public static a()I
    .locals 1

    sget v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    return v0
.end method

.method public static a(Ljava/util/List;Ljava/lang/String;)I
    .locals 7

    const/4 v6, 0x0

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "[\\s]*\\([\\d]+\\)"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/util/regex/Pattern;->compile(Ljava/lang/String;)Ljava/util/regex/Pattern;

    move-result-object v0

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_0
    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v3}, Ljava/util/regex/Pattern;->matcher(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;

    move-result-object v3

    invoke-virtual {v3}, Ljava/util/regex/Matcher;->matches()Z

    move-result v3

    if-eqz v3, :cond_0

    const-string v3, ""

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "========== tt"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v3

    const-string v4, "\\("

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    aget-object v3, v3, v4

    const-string v4, "\\)"

    invoke-virtual {v3, v4}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    aget-object v3, v3, v6

    invoke-static {v3}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v3

    invoke-static {v1, v3}, Ljava/lang/Math;->max(II)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    goto :goto_0

    :cond_1
    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v0

    return v0
.end method

.method public static a(Ljava/io/File;Ljava/lang/String;Lcom/direction/hold/ui/CommonActivity;)Ljava/lang/Boolean;
    .locals 5

    const/4 v4, 0x0

    const/4 v3, 0x0

    new-instance v0, Ljava/io/File;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p0}, Ljava/io/File;->getParentFile()Ljava/io/File;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/a;->a(Ljava/io/File;)Ljava/io/File;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_0

    const v0, 0x7f050054

    invoke-static {p2, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    move-object v0, v4

    :goto_0
    return-object v0

    :cond_0
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_1

    const v0, 0x7f05003f

    invoke-static {p2, v0, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    move-object v0, v4

    goto :goto_0

    :cond_1
    invoke-virtual {p0, v0}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    invoke-static {v0}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v0

    goto :goto_0
.end method

.method public static a(Ljava/util/List;)Ljava/util/List;
    .locals 3

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public static a(I)V
    .locals 0

    sput p0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 1

    const v0, 0x7f050044

    invoke-virtual {p0, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    sput-object v0, Lcn/cheln/explorer/actions/OperationUtil;->k:Ljava/lang/String;

    return-void
.end method

.method private a(Landroid/content/Context;II)V
    .locals 5

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->list()[Ljava/lang/String;

    move-result-object v0

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-static {v1}, Lcn/cheln/explorer/actions/OperationUtil;->b(Ljava/util/List;)Ljava/util/List;

    move-result-object v1

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    if-nez v0, :cond_0

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :goto_0
    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    iput-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    invoke-direct {p0, v1, v2, v0, v3}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/util/List;Ljava/io/File;Ljava/util/List;Ljava/util/Map;)V

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->size()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->isEmpty()Z

    move-result v1

    if-nez v1, :cond_1

    new-instance v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;

    invoke-direct {v1}, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;-><init>()V

    iput-object p1, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->g:Landroid/content/Context;

    invoke-virtual {p1, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->a:Ljava/lang/String;

    const v2, 0x7f05003a

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    aput-object v0, v3, v4

    invoke-virtual {p1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->b:Ljava/lang/String;

    const v0, 0x7f05003b

    invoke-virtual {p1, v0}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->c:Ljava/lang/String;

    invoke-virtual {p1, p3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->e:Ljava/lang/String;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->t:Landroid/content/DialogInterface$OnClickListener;

    iput-object v0, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->d:Landroid/content/DialogInterface$OnClickListener;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->u:Landroid/content/DialogInterface$OnClickListener;

    iput-object v0, v1, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->f:Landroid/content/DialogInterface$OnClickListener;

    invoke-static {v1}, Lcn/cheln/explorer/util/a;->a(Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;)Landroid/app/AlertDialog;

    :goto_1
    return-void

    :cond_0
    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    goto :goto_0

    :cond_1
    const-string v0, ""

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "============= dialog \'s context "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->i:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    invoke-virtual {v0}, Landroid/app/ProgressDialog;->show()V

    goto :goto_1
.end method

.method public static a(Lcn/cheln/explorer/beans/FileInfo;)V
    .locals 1

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method public static a(Ljava/lang/String;Landroid/content/Context;Ljava/lang/String;)V
    .locals 7

    const v6, 0x7f050040

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    new-instance v1, Landroid/content/Intent;

    const-string v2, "android.intent.action.VIEW"

    invoke-direct {v1, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-static {v0}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v2

    if-nez p2, :cond_1

    invoke-static {}, Lcn/cheln/support/images/g;->b()Lcn/cheln/support/images/g;

    move-result-object v3

    invoke-virtual {v3}, Lcn/cheln/support/images/g;->a()Ljava/util/Map;

    move-result-object v3

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcn/cheln/support/app/a;->c(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-interface {v3, v0}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Ljava/lang/String;

    move-object v0, p0

    :goto_0
    if-nez v0, :cond_2

    const/4 v0, 0x0

    invoke-static {p1, v6, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    :cond_0
    :goto_1
    return-void

    :cond_1
    move-object v0, p2

    goto :goto_0

    :cond_2
    const-string v3, "package"

    invoke-virtual {v0, v3}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_3

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "application"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v4, "/"

    invoke-virtual {v0, v4}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v0, v4}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :cond_3
    const-string v3, "type"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "==="

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-nez v0, :cond_4

    const-string v0, "*/*"

    :cond_4
    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->setDataAndType(Landroid/net/Uri;Ljava/lang/String;)Landroid/content/Intent;

    :try_start_0
    invoke-virtual {p1, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
    :try_end_0
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    const/4 v0, 0x1

    invoke-static {p1, v6, v0}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_1
.end method

.method private a(Ljava/util/List;Ljava/io/File;Ljava/util/List;Ljava/util/Map;)V
    .locals 4

    if-nez p1, :cond_1

    :cond_0
    return-void

    :cond_1
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_2
    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/io/File;

    if-eqz v0, :cond_2

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "/"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->o:Ljava/lang/String;

    new-instance v2, Ljava/io/File;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->o:Ljava/lang/String;

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v3

    invoke-interface {p3, v3}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-virtual {v0}, Ljava/io/File;->isHidden()Z

    move-result v3

    if-nez v3, :cond_2

    invoke-virtual {v2}, Ljava/io/File;->isFile()Z

    move-result v3

    if-eqz v3, :cond_3

    invoke-virtual {v0}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->o:Ljava/lang/String;

    const/4 v2, 0x0

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-interface {p4, v0, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_0

    :cond_3
    invoke-virtual {v2}, Ljava/io/File;->list()[Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v0

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    if-eqz v3, :cond_4

    invoke-static {v3}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v3

    :goto_1
    invoke-direct {p0, v0, v2, v3, p4}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/util/List;Ljava/io/File;Ljava/util/List;Ljava/util/Map;)V

    goto :goto_0

    :cond_4
    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    goto :goto_1
.end method

.method private a(Ljava/io/File;Ljava/io/File;)Z
    .locals 8

    const/4 v7, 0x0

    const-string v4, "-----------"

    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {p2}, Ljava/io/File;->mkdirs()Z

    :cond_0
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    new-instance v1, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v1, p1, v2}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    new-instance v2, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v2, p2, v3}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-interface {v0, v1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {p1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v0

    if-eqz v0, :cond_1

    array-length v1, v0

    move v2, v7

    :goto_0
    if-ge v2, v1, :cond_1

    aget-object v3, v0, v2

    new-instance v4, Ljava/io/File;

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    const-string v6, "/"

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v3}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {p0, v3, v4}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/io/File;Ljava/io/File;)Z

    add-int/lit8 v2, v2, 0x1

    goto :goto_0

    :cond_1
    invoke-virtual {p1}, Ljava/io/File;->delete()Z

    move v0, v7

    :goto_1
    return v0

    :cond_2
    new-instance v0, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v0, p2, v1}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-virtual {p2}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_3

    invoke-virtual {p2}, Ljava/io/File;->delete()Z

    iget v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->p:I

    add-int/lit8 v1, v1, 0x1

    iput v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->p:I

    const/4 v1, 0x1

    invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v1

    iput-object v1, v0, Lcn/cheln/explorer/beans/FileInfo;->overrideFlag:Ljava/lang/Boolean;

    :cond_3
    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    new-instance v2, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v2, p1, v3}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-interface {v1, v2, v0}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v0

    invoke-virtual {p1, v0}, Ljava/io/File;->renameTo(Ljava/io/File;)Z

    move-result v0

    const-string v1, ""

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "src ---------- "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "-----------"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {p2}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, "-----------"

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_1
.end method

.method private static b(Ljava/util/List;)Ljava/util/List;
    .locals 4

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lcn/cheln/explorer/beans/FileInfo;

    new-instance v2, Ljava/io/File;

    invoke-virtual {p0}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    :cond_0
    return-object v0
.end method

.method public static b()V
    .locals 1

    const/4 v0, -0x1

    sput v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    return-void
.end method

.method private b(ILandroid/content/Context;)V
    .locals 3

    packed-switch p1, :pswitch_data_0

    :cond_0
    :goto_0
    sget v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    new-instance v1, Lcn/cheln/explorer/actions/b;

    invoke-direct {v1, p0, v0}, Lcn/cheln/explorer/actions/b;-><init>(Lcn/cheln/explorer/actions/OperationUtil;I)V

    invoke-virtual {v1}, Lcn/cheln/explorer/actions/b;->start()V

    const-string v0, "toSelectedString"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "duplicated --"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->h:Ljava/util/Map;

    invoke-interface {v2}, Ljava/util/Map;->size()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    return-void

    :pswitch_0
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    move v1, v0

    :goto_1
    if-ltz v1, :cond_0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v0, v1, :cond_0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v0

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    invoke-virtual {p0, v0}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/io/File;)Z

    :cond_1
    add-int/lit8 v0, v1, -0x1

    move v1, v0

    goto :goto_1

    :pswitch_1
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-static {v0}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    invoke-direct {p0, v0, v1}, Lcn/cheln/explorer/actions/OperationUtil;->b(Ljava/util/List;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_2
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    invoke-direct {p0, v0, v1}, Lcn/cheln/explorer/actions/OperationUtil;->c(Ljava/util/List;Ljava/lang/String;)V

    goto :goto_0

    :pswitch_3
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-static {v0}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/util/List;)Ljava/util/List;

    move-result-object v0

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    invoke-direct {p0, v0, v1}, Lcn/cheln/explorer/actions/OperationUtil;->b(Ljava/util/List;Ljava/lang/String;)V

    check-cast p2, Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {p2}, Lcom/direction/hold/ui/CommonActivity;->n()V

    goto :goto_0

    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method public static b(Lcn/cheln/explorer/beans/FileInfo;)V
    .locals 1

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0, p0}, Ljava/util/List;->remove(Ljava/lang/Object;)Z

    :cond_0
    return-void
.end method

.method private static b(Ljava/io/File;Ljava/io/File;)V
    .locals 5

    :try_start_0
    new-instance v0, Ljava/io/FileInputStream;

    invoke-direct {v0, p0}, Ljava/io/FileInputStream;-><init>(Ljava/io/File;)V

    new-instance v1, Ljava/io/FileOutputStream;

    invoke-direct {v1, p1}, Ljava/io/FileOutputStream;-><init>(Ljava/io/File;)V

    const v2, 0x8000

    new-array v2, v2, [B

    :goto_0
    invoke-virtual {v0, v2}, Ljava/io/FileInputStream;->read([B)I

    move-result v3

    if-lez v3, :cond_0

    const/4 v4, 0x0

    invoke-virtual {v1, v2, v4, v3}, Ljava/io/FileOutputStream;->write([BII)V

    goto :goto_0

    :catch_0
    move-exception v0

    :goto_1
    return-void

    :cond_0
    invoke-virtual {v1}, Ljava/io/FileOutputStream;->close()V

    invoke-virtual {v0}, Ljava/io/FileInputStream;->close()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_1
.end method

.method private b(Ljava/util/List;Ljava/lang/String;)V
    .locals 3

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iput-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    invoke-virtual {v0}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, ""

    const-string v2, "needn\'t move"

    invoke-static {v0, v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v2, "/"

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    invoke-virtual {v2}, Ljava/io/File;->getName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->r:Ljava/io/File;

    invoke-direct {p0, v0, v2}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/io/File;Ljava/io/File;)Z

    goto :goto_0

    :cond_1
    return-void
.end method

.method public static c()V
    .locals 2

    const/4 v1, 0x0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    sput v1, Lcn/cheln/explorer/actions/OperationUtil;->n:I

    sput-boolean v1, Lcn/cheln/explorer/actions/OperationUtil;->l:Z

    :cond_0
    return-void
.end method

.method public static c(Landroid/content/Context;)V
    .locals 12

    const/4 v7, 0x0

    const/4 v10, 0x2

    const/4 v9, 0x0

    const/4 v8, 0x1

    const-string v11, "com.lewa.filemgr.SEND_FLAG"

    move-object v0, p0

    check-cast v0, Lcom/direction/hold/ui/CommonActivity;

    move-object v1, v0

    invoke-virtual {v1}, Lcom/direction/hold/ui/CommonActivity;->y()Ljava/lang/String;

    move-result-object v2

    const-string v1, "apk"

    invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    new-instance v3, Ljava/util/ArrayList;

    invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V

    :try_start_0
    new-instance v4, Lcn/cheln/explorer/actions/UriAbsPathFilter;

    const/4 v1, 0x2

    new-array v5, v1, [Ljava/lang/Integer;

    const/4 v1, 0x0

    const/4 v6, 0x4

    invoke-static {v6}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v6

    aput-object v6, v5, v1

    const/4 v6, 0x1

    move-object v0, p0

    check-cast v0, Lcom/direction/hold/ui/CommonActivity;

    move-object v1, v0

    invoke-virtual {v1}, Lcom/direction/hold/ui/CommonActivity;->m()Z

    move-result v1

    invoke-static {v1}, Lcn/cheln/explorer/config/a;->a(Z)I

    move-result v1

    invoke-static {v1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v1

    aput-object v1, v5, v6

    sget-object v1, Lcn/cheln/explorer/config/Constants;->a:[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;

    const/4 v6, 0x0

    invoke-direct {v4, v5, v1, v6, v3}, Lcn/cheln/explorer/actions/UriAbsPathFilter;-><init>([Ljava/lang/Integer;[Lcn/cheln/explorer/ds/sdcard/TypeFilter$TextWrapper;[Ljava/lang/String;Ljava/util/List;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_1
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/beans/FileInfo;

    invoke-virtual {v1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v6

    invoke-virtual {v6}, Ljava/io/File;->isDirectory()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-virtual {v6, v4}, Ljava/io/File;->listFiles(Ljava/io/FileFilter;)[Ljava/io/File;

    goto :goto_1

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    move-object v4, v7

    goto :goto_0

    :cond_0
    invoke-virtual {v1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v1

    invoke-static {v1}, Landroid/net/Uri;->fromFile(Ljava/io/File;)Landroid/net/Uri;

    move-result-object v1

    invoke-virtual {v3, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_1
    new-instance v1, Landroid/content/Intent;

    const-string v4, "android.intent.action.SEND_MULTIPLE"

    invoke-direct {v1, v4}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-le v4, v8, :cond_3

    const-string v4, "com.lewa.filemgr.SEND_FLAG"

    invoke-virtual {v1, v11, v10}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    :cond_2
    :goto_2
    invoke-virtual {v1, v2}, Landroid/content/Intent;->setType(Ljava/lang/String;)Landroid/content/Intent;

    const-string v2, "android.intent.extra.STREAM"

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putParcelableArrayListExtra(Ljava/lang/String;Ljava/util/ArrayList;)Landroid/content/Intent;

    const v2, 0x7f050018

    invoke-virtual {p0, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/content/Intent;->createChooser(Landroid/content/Intent;Ljava/lang/CharSequence;)Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {p0, v1}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    move-object v0, p0

    check-cast v0, Lcom/direction/hold/ui/CommonActivity;

    move-object v1, v0

    invoke-virtual {v1, v9, v8}, Lcom/direction/hold/ui/CommonActivity;->a(ZZ)V

    check-cast p0, Lcom/direction/hold/ui/CommonActivity;

    invoke-virtual {p0}, Lcom/direction/hold/ui/CommonActivity;->i()V

    return-void

    :cond_3
    invoke-virtual {v3}, Ljava/util/ArrayList;->size()I

    move-result v4

    if-ne v4, v8, :cond_2

    const-string v4, "com.lewa.filemgr.SEND_FLAG"

    invoke-virtual {v1, v11, v8}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    goto :goto_2
.end method

.method private c(Ljava/util/List;Ljava/lang/String;)V
    .locals 8

    new-instance v0, Ljava/io/File;

    invoke-direct {v0, p2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->list()[Ljava/lang/String;

    move-result-object v0

    if-nez v0, :cond_2

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    :goto_0
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :cond_0
    :goto_1
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcn/cheln/explorer/beans/FileInfo;

    const-string v2, ""

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "========== src getPath"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->g()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v2, v3}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    if-eqz p1, :cond_0

    const-string v2, ""

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getParent()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v3, p2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    sget-object v2, Lcn/cheln/explorer/actions/OperationUtil;->k:Ljava/lang/String;

    :cond_1
    new-instance v3, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    const-string v4, ""

    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "========== target path "

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    invoke-static {v4, v5}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    :goto_2
    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_3

    const-string v4, ""

    invoke-virtual {v2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-nez v4, :cond_3

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    sget-object v3, Lcn/cheln/explorer/actions/OperationUtil;->k:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/io/File;

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, "/"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    goto :goto_2

    :cond_2
    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    goto/16 :goto_0

    :cond_3
    const-string v2, "copy"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, " src "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    const-string v5, " target "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->isFile()Z

    move-result v2

    if-eqz v2, :cond_8

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v4, "==Read ReadSystemMemory.getAvailableInternalMemorySize(): "

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcn/cheln/support/app/a;->a()Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v4, "==Read src.length(): "

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v4

    invoke-virtual {v4}, Ljava/io/File;->length()J

    move-result-wide v4

    invoke-virtual {v2, v4, v5}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v4, "==Read boolean "

    invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-static {}, Lcn/cheln/support/app/a;->b()Ljava/lang/Long;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v6

    invoke-virtual {v6}, Ljava/io/File;->length()J

    move-result-wide v6

    cmp-long v4, v4, v6

    if-gez v4, :cond_5

    const/4 v4, 0x1

    :goto_3
    invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcn/cheln/support/app/c;->a(Ljava/lang/String;)V

    invoke-static {}, Lcn/cheln/support/app/a;->b()Ljava/lang/Long;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->length()J

    move-result-wide v6

    cmp-long v2, v4, v6

    if-gez v2, :cond_6

    sget-boolean v0, Lcn/cheln/explorer/actions/OperationUtil;->l:Z

    if-nez v0, :cond_4

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    const v2, 0x7f050080

    const/4 v3, 0x1

    new-array v3, v3, [Ljava/lang/Object;

    const/4 v4, 0x0

    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    sget v6, Lcn/cheln/explorer/actions/OperationUtil;->n:I

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    aput-object v5, v3, v4

    invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    invoke-static {v0, v1, v2}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    const/4 v0, 0x1

    sput-boolean v0, Lcn/cheln/explorer/actions/OperationUtil;->l:Z

    :cond_4
    return-void

    :cond_5
    const/4 v4, 0x0

    goto :goto_3

    :cond_6
    const/4 v2, 0x0

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_7

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_7

    invoke-virtual {v3}, Ljava/io/File;->delete()Z

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    :cond_7
    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v4

    invoke-static {v4, v3}, Lcn/cheln/explorer/actions/OperationUtil;->b(Ljava/io/File;Ljava/io/File;)V

    :try_start_0
    sget-object v4, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    iget-object v6, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-static {v5, v3, v6, v2}, Lcn/cheln/explorer/beans/FileInfo;->a(Ljava/lang/Class;Ljava/io/File;Landroid/content/Context;Ljava/lang/Boolean;)Lcn/cheln/explorer/beans/FileInfo;

    move-result-object v2

    invoke-interface {v4, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_4
    sget v2, Lcn/cheln/explorer/actions/OperationUtil;->n:I

    add-int/lit8 v2, v2, 0x1

    sput v2, Lcn/cheln/explorer/actions/OperationUtil;->n:I

    goto/16 :goto_1

    :catch_0
    move-exception v2

    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_4

    :cond_8
    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-virtual {v3}, Ljava/io/File;->exists()Z

    move-result v4

    if-eqz v4, :cond_9

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->f()Ljava/lang/String;

    move-result-object v4

    invoke-interface {v0, v4}, Ljava/util/List;->contains(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_a

    :cond_9
    invoke-virtual {v3}, Ljava/io/File;->mkdir()Z

    const/4 v2, 0x0

    :cond_a
    :try_start_1
    sget-object v4, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v5

    iget-object v6, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-static {v5, v3, v6, v2}, Lcn/cheln/explorer/beans/FileInfo;->a(Ljava/lang/Class;Ljava/io/File;Landroid/content/Context;Ljava/lang/Boolean;)Lcn/cheln/explorer/beans/FileInfo;

    move-result-object v2

    invoke-interface {v4, p1, v2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1

    :goto_5
    const-string v2, "file"

    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "-----------"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v5

    invoke-virtual {v5}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v2, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    invoke-virtual {p1}, Lcn/cheln/explorer/beans/FileInfo;->p()Ljava/io/File;

    move-result-object v2

    invoke-virtual {v2}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v2

    if-eqz v2, :cond_4

    new-instance v4, Ljava/util/ArrayList;

    invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V

    const-class v5, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v6, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    const/4 v7, 0x0

    invoke-static {v4, v5, v2, v6, v7}, Lcn/cheln/support/app/a;->a(Ljava/util/List;Ljava/lang/Class;[Ljava/io/File;Landroid/content/Context;Ljava/lang/String;)Ljava/util/List;

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v4, v2}, Lcn/cheln/explorer/actions/OperationUtil;->c(Ljava/util/List;Ljava/lang/String;)V

    goto/16 :goto_1

    :catch_1
    move-exception v2

    invoke-virtual {v2}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_5
.end method

.method public static d()Ljava/util/List;
    .locals 1

    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    return-object v0
.end method


# virtual methods
.method public final a(ILandroid/content/Context;)V
    .locals 8

    const v7, 0x7f050039

    const/4 v6, 0x0

    const/4 v5, 0x1

    sput p1, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    iput-object p2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    const/4 v1, -0x1

    sget v3, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    packed-switch v3, :pswitch_data_0

    move v3, v1

    :goto_0
    :try_start_0
    invoke-static {}, Ljava/lang/Runtime;->getRuntime()Ljava/lang/Runtime;

    move-result-object v1

    const-string v4, "chmod 777 /system/app"

    invoke-virtual {v1, v4}, Ljava/lang/Runtime;->exec(Ljava/lang/String;)Ljava/lang/Process;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    if-nez v1, :cond_1

    new-instance v4, Landroid/app/ProgressDialog;

    move-object v0, v2

    check-cast v0, Landroid/app/Activity;

    move-object v1, v0

    invoke-direct {v4, v1}, Landroid/app/ProgressDialog;-><init>(Landroid/content/Context;)V

    sput-object v4, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v4, v1}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v6}, Landroid/app/ProgressDialog;->setCancelable(Z)V

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    invoke-virtual {v1, v5}, Landroid/app/ProgressDialog;->setIndeterminate(Z)V

    :goto_2
    new-instance v1, Ljava/lang/Thread;

    new-instance v2, Lcn/cheln/explorer/actions/c;

    invoke-direct {v2, p0, p0}, Lcn/cheln/explorer/actions/c;-><init>(Lcn/cheln/explorer/actions/OperationUtil;Lcn/cheln/explorer/actions/OperationUtil;)V

    invoke-direct {v1, v2}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    iput-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->i:Ljava/lang/Thread;

    sget v1, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    const/4 v2, 0x2

    if-ne v1, v2, :cond_4

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-ne v1, v5, :cond_3

    const v2, 0x7f050031

    new-array v3, v5, [Ljava/lang/Object;

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->b:Ljava/util/List;

    invoke-interface {v1, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v1, v1, Lcn/cheln/explorer/beans/FileInfo;->isDir:Ljava/lang/Boolean;

    invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z

    move-result v1

    if-eqz v1, :cond_2

    const v1, 0x7f0500b0

    :goto_3
    invoke-virtual {p2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    aput-object v1, v3, v6

    invoke-virtual {p2, v2, v3}, Landroid/content/Context;->getString(I[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    :goto_4
    new-instance v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;

    invoke-direct {v2}, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;-><init>()V

    iput-object p2, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->g:Landroid/content/Context;

    const v3, 0x7f050010

    invoke-virtual {p2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v3

    iput-object v3, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->a:Ljava/lang/String;

    iput-object v1, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->b:Ljava/lang/String;

    const v1, 0x7f050033

    invoke-virtual {p2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->c:Ljava/lang/String;

    const v1, 0x7f050034

    invoke-virtual {p2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    iput-object v1, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->e:Ljava/lang/String;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->t:Landroid/content/DialogInterface$OnClickListener;

    iput-object v1, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->d:Landroid/content/DialogInterface$OnClickListener;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->v:Landroid/content/DialogInterface$OnClickListener;

    iput-object v1, v2, Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;->f:Landroid/content/DialogInterface$OnClickListener;

    invoke-static {v2}, Lcn/cheln/explorer/util/a;->a(Lcn/cheln/explorer/util/DialogUtil$DialogAbstract;)Landroid/app/AlertDialog;

    :cond_0
    :goto_5
    return-void

    :pswitch_0
    const v1, 0x7f050037

    move v3, v1

    goto/16 :goto_0

    :pswitch_1
    const v1, 0x7f050035

    move v3, v1

    goto/16 :goto_0

    :pswitch_2
    const v1, 0x7f050036

    move v3, v1

    goto/16 :goto_0

    :pswitch_3
    const v1, 0x7f05005d

    move v3, v1

    goto/16 :goto_0

    :catch_0
    move-exception v1

    invoke-virtual {v1}, Ljava/io/IOException;->printStackTrace()V

    goto/16 :goto_1

    :cond_1
    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/ProgressDialog;->setMessage(Ljava/lang/CharSequence;)V

    goto/16 :goto_2

    :cond_2
    const v1, 0x7f0500b1

    goto :goto_3

    :cond_3
    const v1, 0x7f050032

    invoke-virtual {p2, v1}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_4

    :cond_4
    sget v1, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    if-ne v1, v5, :cond_5

    const v1, 0x7f050038

    const v2, 0x7f05003c

    invoke-direct {p0, p2, v1, v2}, Lcn/cheln/explorer/actions/OperationUtil;->a(Landroid/content/Context;II)V

    goto :goto_5

    :cond_5
    sget v1, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    if-nez v1, :cond_6

    const v1, 0x7f05003d

    invoke-direct {p0, p2, v7, v1}, Lcn/cheln/explorer/actions/OperationUtil;->a(Landroid/content/Context;II)V

    goto :goto_5

    :cond_6
    sget v1, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    const/4 v2, 0x3

    if-ne v1, v2, :cond_0

    const v1, 0x7f05005b

    invoke-direct {p0, p2, v7, v1}, Lcn/cheln/explorer/actions/OperationUtil;->a(Landroid/content/Context;II)V

    goto :goto_5

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_0
        :pswitch_3
    .end packed-switch
.end method

.method public final a(Ljava/lang/String;)V
    .locals 0

    iput-object p1, p0, Lcn/cheln/explorer/actions/OperationUtil;->s:Ljava/lang/String;

    return-void
.end method

.method public final a(Z)V
    .locals 2

    if-nez p1, :cond_1

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    if-eqz v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    new-instance v0, Landroid/os/Message;

    invoke-direct {v0}, Landroid/os/Message;-><init>()V

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    const/4 v1, 0x0

    iput v1, v0, Landroid/os/Message;->what:I

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->d:Landroid/app/ProgressDialog;

    iput-object v1, v0, Landroid/os/Message;->obj:Ljava/lang/Object;

    iget-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    check-cast v0, Lcom/direction/hold/ui/CommonActivity;

    iget-object v0, v0, Lcom/direction/hold/ui/CommonActivity;->i:Landroid/os/Handler;

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    invoke-virtual {v0, v1}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z

    if-eqz p1, :cond_0

    const/4 v0, 0x0

    iput-object v0, p0, Lcn/cheln/explorer/actions/OperationUtil;->q:Landroid/os/Message;

    goto :goto_0
.end method

.method public final a(Ljava/io/File;)Z
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    invoke-virtual {p1}, Ljava/io/File;->isDirectory()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Ljava/io/File;->listFiles()[Ljava/io/File;

    move-result-object v0

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    new-instance v2, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v2, p1, v3}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-interface {v1, v2, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    if-eqz v0, :cond_1

    move v1, v4

    :goto_0
    array-length v2, v0

    if-ge v1, v2, :cond_1

    aget-object v2, v0, v1

    invoke-virtual {p0, v2}, Lcn/cheln/explorer/actions/OperationUtil;->a(Ljava/io/File;)Z

    add-int/lit8 v1, v1, 0x1

    goto :goto_0

    :cond_0
    sget-object v0, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    new-instance v1, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {v1, p1, v2}, Lcn/cheln/explorer/beans/FileInfo;-><init>(Ljava/io/File;Landroid/content/Context;)V

    invoke-interface {v0, v1, v5}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_1
    invoke-virtual {p1}, Ljava/io/File;->delete()Z

    return v4
.end method

.method public final b(Landroid/content/Context;)V
    .locals 1

    sget v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    invoke-virtual {p0, v0, p1}, Lcn/cheln/explorer/actions/OperationUtil;->a(ILandroid/content/Context;)V

    return-void
.end method

.method public final e()V
    .locals 3

    const-string v0, "---"

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "---123"

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    sget v2, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    sget v0, Lcn/cheln/explorer/actions/OperationUtil;->m:I

    iget-object v1, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-direct {p0, v0, v1}, Lcn/cheln/explorer/actions/OperationUtil;->b(ILandroid/content/Context;)V

    return-void
.end method

.method public final f()V
    .locals 4

    new-instance v0, Ljava/util/HashSet;

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->entrySet()Ljava/util/Set;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/Map$Entry;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getKey()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcn/cheln/explorer/beans/FileInfo;

    invoke-interface {v0}, Ljava/util/Map$Entry;->getValue()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v3, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-static {v0, v0, v1, v3}, Lcn/cheln/support/app/a;->a(Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Lcn/cheln/explorer/beans/FileInfo;Landroid/content/Context;)Ljava/lang/String;

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final g()V
    .locals 3

    new-instance v0, Ljava/util/HashSet;

    sget-object v1, Lcn/cheln/explorer/actions/OperationUtil;->e:Ljava/util/Map;

    invoke-interface {v1}, Ljava/util/Map;->keySet()Ljava/util/Set;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/util/HashSet;-><init>(Ljava/util/Collection;)V

    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcn/cheln/explorer/beans/FileInfo;

    iget-object v2, p0, Lcn/cheln/explorer/actions/OperationUtil;->j:Landroid/content/Context;

    invoke-static {v0, v2}, Lcn/cheln/support/app/a;->a(Lcn/cheln/explorer/beans/FileInfo;Landroid/content/Context;)V

    goto :goto_0

    :cond_0
    return-void
.end method

.method public final h()V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcn/cheln/explorer/actions/OperationUtil;->a(Z)V

    return-void
.end method
